﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Xms.CRM.Domain
{
    /// <summary>
    /// 上传文件或者图片返回实体模型
    /// </summary>
    public class UploadResultDoEntity
    {
        /// <summary>
        /// 0表示成功，其它表示失败
        /// </summary>
        public int code { get; set; } = 0;
        /// <summary>
        /// 失败信息
        /// </summary>
        public string msg { get; set; }
        /// <summary>
        /// 文件信息
        /// </summary>
        public FileInfo data { get; set; } = new FileInfo();
    }
    public class FileInfo
    {
        /// <summary>
        /// 文件地址
        /// 如："http://cdn.xxx.com/upload/file/xxx.zip" 
        /// </summary>
        public string src { get; set; }
        /// <summary>
        /// 文件名称
        /// </summary>
        public string name { get; set; }
    }
}
